<table width="100%" align="center" cellpadding="0" cellspacing="0" id="judul">
  <tr align="center">
    <td width="100%" colspan="15"><h3>Rekapitulasi Data Batas Sempadan Air</h3></td>
  </tr>
</table>
<p>&nbsp;</p>
<table width="100%" border="2" cellpadding="0" cellspacing="0">
<tr align="center">
    <td width="auto" rowspan="2">No</td>
    <td width="auto" rowspan="2">Tahun</td>
    <td width="auto" rowspan="2">Nama Pemohon</td>
    <td width="auto" rowspan="2">Alamat Pemohon</td>
    <td width="auto" rowspan="2">Tanggal Permohonan</td>
    <td width="auto" rowspan="2">Tanggal Perijinan</td>
    <td width="auto" rowspan="2">Nomor Ijin Surat</td>
    <td colspan="3">Lokasi</td>
    <td width="auto" rowspan="2">Batas Sempadan A</td>
    <td width="auto" rowspan="2">Batas Pagar A</td>
    <td width="auto" rowspan="2">Batas Bangunan A</td>
    <td width="auto" rowspan="2">Batas Sempadan B</td>
    <td width="auto" rowspan="2">Batas Pagar B</td>
    <td width="auto" rowspan="2">Batas Bangunan B</td>
    <td width="auto" rowspan="2">Batas Sempadan C</td>
    <td width="auto" rowspan="2">Batas Pagar C</td>
    <td width="auto" rowspan="2">Batas Bangunan C</td>
    <td width="auto" rowspan="2">Batas Sempadan D</td>
    <td width="auto" rowspan="2">Batas Pagar D</td>
    <td width="auto" rowspan="2">Batas Bangunan D</td>
  </tr>
  <tr align="center">
    <td width="auto">Lokasi</td>
    <td width="auto">Kecamatan</td>
    <td width="auto">Kelurahan / Desa</td>
  </tr>
  <? $no = 1;
 	foreach($dibsa ->result() as $row){
 	?>
  <tr>
    <td><?= $no; ?></td>
    <td><?= $row->TAHUN; ?></td>
    <td><?= $row->NAMA_PEMOHON; ?></td>
    <td><?= $row->ALAMAT_PEMOHON; ?></td>
    <td><?= $row->TGL_PERMOHONAN; ?></td>
    <td><?= $row->TGL_IJIN; ?></td>
    <td><?= $row->NO_IJIN; ?></td>
    <td><?= $row->LOKASI; ?></td>
    <td><?= $row->KECAMATAN; ?></td>
    <td><?= $row->KELURAHAN; ?></td>
    <td width="auto"><?= $row->BATAS_SEMPADAN_A; ?></td>
    <td width="auto"><?= $row->GPT_A; ?></td>
    <td width="auto"><?= $row->GPS_A; ?></td>
    <td width="auto"><?= $row->BATAS_SEMPADAN_B ?></td>
    <td width="auto"><?= $row->GPT_B; ?></td>
    <td width="auto"><?= $row->GPS_B; ?></td>
    <td width="auto"><?= $row->BATAS_SEMPADAN_C; ?></td>
    <td width="auto"><?= $row->GPT_C; ?></td>
    <td width="auto"><?= $row->GPS_C; ?></td>
    <td width="auto"><?= $row->BATAS_SEMPADAN_D; ?></td>
    <td width="auto"><?= $row->GPT_D; ?></td>
    <td width="auto"><?= $row->GPS_D; ?></td>
  </tr>
  <? $no++;}?>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
    <td width="auto">&nbsp;</td>
  </tr>
  </table>
